package cn.edu.scau.cmil.linwei.comprehensive.Script;

import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

public class PartScoreData {
    private SimpleStringProperty section;
    private SimpleIntegerProperty number;
    private SimpleStringProperty percent;

    public PartScoreData() {

    }

    public PartScoreData(String section, int number, String percent) {
        this.section = new SimpleStringProperty(section);
        this.number = new SimpleIntegerProperty(number);
        this.percent = new SimpleStringProperty(percent);
    }

    //每个数据必须要有get和set方法，否则表中数据无法显示出来

    public String getSection() {
        return section.get();
    }

    public SimpleStringProperty sectionProperty() {
        return section;
    }

    public void setSection(String section) {
        this.section.set(section);
    }

    public int getNumber() {
        return number.get();
    }

    public SimpleIntegerProperty numberProperty() {
        return number;
    }

    public void setNumber(int number) {
        this.number.set(number);
    }

    public String getPercent() {
        return percent.get();
    }

    public SimpleStringProperty percentProperty() {
        return percent;
    }

    public void setPercent(String percent) {
        this.percent.set(percent);
    }
}
